home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Apple WWDC 1996
/
WWDC96_1996 (CD).toast
/
Technology Materials
/
MacOS 8 Resources
/
Developer Tools
/
ResEdit™ 3.0d1
/
ResEdit™ 3.0d1
/
ResEdit™ 3.0d1.rsrc
/
VDL_131_Resource.MENU.bin
< prev
next >
Wrap
Text File
|
1996-04-23
|
6KB
|
221 lines
Margin(10, 10, 10, 10)
HList()
{
VList()
{
GenericView("MenuTitleBuilderProc");
MenuItemList(Width = 200, Height = 250);
}
Spacer(Width = 10);
Spacer(Width = 1, BackColor = {45000, 45000, 45000});
Spacer(Width = 10);
Switch(N_curMode)
{
case 0: //NormalItem
VList()
{
IntegerPopup("Item Type:", 90, N_selItem.type, Alignment = Right)
{
IntItem("Normal Item", 0);
IntItem("Submenu Item", 1);
IntItem("Separator", 2);
};
Spacer(Height = 5);
EditText( N_selItem.name, Width = 290,Label = "Item Text: ", LabelWidth = 90, LabelAlignment = Right);
Spacer(Height = 5);
EditText( N_selItem.iconID, Width = 290, FilterProc = "MENUItemIconIDFilterProc", Label = "Icon ID: ", LabelWidth = 90, LabelAlignment = Right);
Spacer(Height = 5);
StylePopup("Item Style:", 88, N_selItem.style, Alignment = Right);
Spacer(Height = 5);
IntegerPopup("Icon Type:", 88, N_selItem.iconType, Alignment = Right)
{
IntItem("Normal", 0);
IntItem("Half Height", 1);
IntItem("sicn", 2);
};
CheckBox("Enabled", N_selItem.enabled, Width = 70);
Spacer(Height = 5);
Label("Colors: ", Single)
Margin(2,2,5,5)
VList(Width = 225)
{
HList(Width = UseParent)
{
Spacer();
StaticText("Item Text: ", Alignment = Right);
Margin(2,2,2,2, Single, Outer, Height = 18, Width = 24)
ColorControl( N_selItem.textColor_red,
N_selItem.textColor_green,
N_selItem.textColor_blue);
}
Spacer(Height = 6);
HList(Width = UseParent)
{
Spacer();
EditText( N_selItem.cmdKey, Width = 135,Label = "Cmd Key: ", LabelWidth = 90, LabelAlignment = Right);
Spacer(Width = 5);
Margin(2,2,2,2, Single, Outer, Height = 18, Width = 24)
ColorControl( N_selItem.keyColor_red,
N_selItem.keyColor_green,
N_selItem.keyColor_blue);
}
Spacer(Height = 3);
HList(Width = UseParent)
{
Spacer();
IntegerPopup("Item Mark:", 90, N_selItem.mark, Alignment = Right, Width = 117)
{
IntItem("None", 0);
IntItem("Check",1);
IntItem("Diamond", 2);
IntItem("Hollow Diamond", 3);
};
Spacer(Width = 5);
Margin(2,2,2,2, Single, Outer, Height = 18, Width = 24)
ColorControl( N_selItem.markColor_red,
N_selItem.markColor_green,
N_selItem.markColor_blue);
}
}
}
//Case 0
case 1: //Popup Item
VList()
{
IntegerPopup("Item Type:", 90, N_selItem.type, Alignment = Right)
{
IntItem("Normal Item", 0);
IntItem("Submenu Item", 1);
IntItem("Separator", 2);
};
Spacer(Height = 5);
EditText( N_selItem.name, Width = 290,Label = "Item Text: ", LabelWidth = 90, LabelAlignment = Right);
Spacer(Height = 5);
EditText( N_selItem.submenuID, Width = 140,Label = "Submenu ID: ", LabelWidth = 90, LabelAlignment = Right);
Spacer(Height = 5);
HList(Width = UseParent)
{
Spacer();
CheckBox("Enabled", N_selItem.enabled, Width = 70);
}
Spacer(Height = 5);
Label("Colors: ", Single)
Margin(2,2,5,5)
VList(Width = 225)
{
HList(Width = UseParent)
{
Spacer();
StaticText("Item Text: ", Alignment = Right);
Margin(2,2,2,2, Single, Outer, Height = 18, Width = 24)
ColorControl(N_selItem.textColor_red, N_selItem.textColor_green, N_selItem.textColor_blue);
}
Spacer(Height = 3);
HList(Width = UseParent)
{
Spacer();
Margin(2,2,2,2)
PICT(2016);
Margin(2,2,2,2, Single, Outer, Height = 18, Width = 24)
ColorControl(N_selItem.markColor_red, N_selItem.markColor_green, N_selItem.markColor_blue);
}
}
}
//Case 1
case 2: //Separator
VList()
{
IntegerPopup("Item Type:", 90, N_selItem.type, Alignment = Right)
{
IntItem("Normal Item", 0);
IntItem("Submenu Item", 1);
IntItem("Separator", 2);
};
Spacer(Height = 5);
HList()
{
StaticText("Item Color: ", Width = 90, Alignment = Right);
Margin(2,2,2,2, Single, Outer, Height = 18, Width = 24)
ColorControl(N_selItem.textColor_red, N_selItem.textColor_green, N_selItem.textColor_blue);
}
Spacer(Height = 5);
HList(Width = UseParent)
{
Spacer();
CheckBox("Enabled", N_selItem.enabled, Width = 70);
}
Spacer(Height = 5);
}
//case 2
case 3: //Whole Menu
VList()
{
Spacer(Height = 5);
EditText( menuID, Width = 140,Label = "Menu ID: ", LabelWidth = 90, LabelAlignment = Right);
Spacer(Height = 5);
EditText( procID, Width = 140,Label = "Proc ID: ", LabelWidth = 90, LabelAlignment = Right);
Spacer(Height = 5);
Switch (appleMenu)
{
case 0:
Margin(0,0,0,5)
EditText( title, Width = 290,Label = "Menu Title: ", LabelWidth = 90, LabelAlignment = Right);
case 1:
HList()
{
Margin(0,2,0,2)
StaticText("Menu Title: ", Width = 90, Alignment = Right);
Margin(2,2,2,3, Single, Outer)
ics8(-16386);
}
}
Spacer(Height = 5);
CheckBox("Apple Menu", appleMenu);
Spacer(Height = 5);
CheckBox("Enabled", enabled, Width = 70);
Spacer(Height = 5);
Label("Colors: ", Single)
Margin(2,2,5,5)
VList(Width = 225)
{
HList(Width = UseParent)
{
Spacer();
StaticText("Menu Title: ", Alignment = Right);
Margin(2,2,2,2, Single, Outer, Height = 18, Width = 24)
ColorControl(titleColor_red, titleColor_green, titleColor_blue);
}
Spacer(Height = 3);
HList(Width = UseParent)
{
Spacer();
StaticText("Background: ", Alignment = Right);
Margin(2,2,2,2, Single, Outer, Height = 18, Width = 24)
ColorControl(backColor_red, backColor_green, backColor_blue);
}
Spacer(Height = 3);
HList(Width = UseParent)
{
Spacer();
StaticText("Default Item Text: ", Alignment = Right);
Margin(2,2,2,2, Single, Outer, Height = 18, Width = 24)
ColorControl(itemColor_red, itemColor_green, itemColor_blue);
}
Spacer(Height = 3);
}
}
//case 3
default:
Spacer(Height = 5, Width = 5);
}//MenuMode Switch
}